[week04] 제리 4주차 미션#14
Open
choyekyo wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: TMDB API 연동 및 무한 스크롤 구현
작업 내용
fetchMovies) 구현 및 popular / now_playing / top_rated / upcoming 4개 엔드포인트 분리useQuery/useInfiniteQuery커스텀 훅 분리useInView기반 무한 스크롤 구현옵션
infinite키로 전체를 단일 캐시로 관리infiniteOptions공통 객체로 무한 쿼리 훅 간 중복 제거threshold: 0.5설정으로 감시 요소가 50% 이상 노출될 때 다음 페이지 요청자세한 설명) https://coding-cherry.tistory.com/59